import request from '@/utils/request'

// 我参与的会议列表
export function getMeetingsMyParticipationPage(params: any) {
  return request({
    url: '/project/meetings/my-participation',
    method: 'get',
    params,
  })
}

// 我组织的会议列表
export function getMeetingsMyOrganizedPage(params: any) {
  return request({
    url: '/project/meetings/my-organized',
    method: 'get',
    params,
  })
}

// 所有会议列表
export function getMeetingsParticipationPage(params: any) {
  return request({
    url: '/project/meetings/all-page',
    method: 'get',
    params,
  })
}

// 发起会议
export function getMeetingsCreate(params: any) {
  return request({
    url: '/project/meetings/create',
    method: 'post',
    data: params,
  })
}

// 更新存储项目会议
export function getMeetingsUpdate(params: any) {
  return request({
    url: '/project/meetings/update',
    method: 'put',
    data: params,
  })
}

// 导出会议列表
export function getMeetingsExportExcel(params: any) {
  return request({
    url: '/project/meetings/export-excel',
    method: 'get',
    responseType: 'blob',
    params,
  })
}

// 获取会议详细信息
export function getMeetingsDetails(params: any) {
  return request({
    url: '/project/meetings/get',
    method: 'get',
    params,
  })
}

// 写入会议结论
export function getMeetingsWriteConclusions(params: any) {
  return request({
    url: '/project/meetings/write-conclusions',
    method: 'post',
    data: params,
  })
}

// 更新参会人员状态
export function getMeetingsUpdateParticipantStatus(params: any) {
  return request({
    url: '/project/meetings/update-participant-status',
    method: 'get',
    params,
  })
}

// 获取关联信息
export function getMeetingsGetAssociationByType(params: any) {
  return request({
    url: '/project/meetings/get-association-by-type',
    method: 'get',
    params,
  })
}

// 删除存储项目会议的详细信息
export function deleteMeetingsInfo(params: any) {
  return request({
    url: '/project/meetings/delete',
    method: 'DELETE',
    params,
  })
}

// 删除会议结论
export function deleteMeetingsConclusions(params: any) {
  return request({
    url: '/project/meetings/remove-conclusions',
    method: 'DELETE',
    params,
  })
}
